package com.lg.business.util;
public enum RespCode {
    SUCCESS(1000, "success"),
    ERROR(9999, "fail"),
    INVALID_ARG(1001000, "参数异常"),
    INVALID_TOKEN(1001001, "TOKEN失效"),
    TOKEN_NULL(1001002, "TOKEN不能为空"),
    SIGN_VERIFY_ERROR(1001003, "签名错误"),
    METHOD_NOT_SUPPORTED(1002001, "请求方式不合法"),
    CLASS_CAST(1002002, "类型转化异常"),
    NULL_POINT(1002003, "空指针异常"),
    RUNTIME(1002004, "运行时异常");

    private int code;
    private String msg;

    private RespCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return this.code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return this.msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}